BIN     = debugcmd
CC      = gcc

SOURCES = $(wildcard ./*.c)
SOURCES += $(wildcard ../../../*.c)
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
IFLAGS  = -I./ -I../../../ -I../../../portable/linux
LFLAGS  =  
CFLAGS  = $(IFLAGS) $(LFLAGS)

$(BIN) : $(OBJECTS)
	$(CC) $^ $(CFLAGS) -o $@

%.o:%.c
	$(CC) $(CFLAGS) -c $^ -o $@

clean :
	rm -f $(BIN) *.o ../../../*.o
